package oop3.teacher;

public class JavaTeacher extends Teacher {
    public JavaTeacher(String name, int age, int teaAge, char sex) {
        super(name, age, teaAge, sex);
    }

    void master() {
        System.out.println(super.name+"老师精通Java编程,教授Java相关课程");
    }

    @Override
    public void giveLession() {     //上课
        System.out.println("同学们好，开始上课");
        System.out.println("java老师，用idea 2022上课，回顾，上新课，布置作业");
    }
}
